<template>
  <div>
    <!-- 标题栏 -->
    <van-nav-bar
      class="nav"
      title="挂号问诊"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    ></van-nav-bar>
    <div class="doctor-main">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>

export default {
  name: "doctor-index",
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep .van-nav-bar__left {
  .van-nav-bar__text {
    color: #fff;
  }
}
::v-deep .van-nav-bar .van-icon {
  color: #fff;
}

::v-deep .van-nav-bar__title {
  color: #fff;
}
::v-depp .van-nav-bar__text {
  color: #fff !important;
}
.nav {
  background-color: #36c14c;
  span {
    color: #fff;
  }
}
.doctor-main{
  padding: 20px;
}
</style>
